package com.oop2.test6;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-09-18
 * Time: 20:54
 */
public class Student extends Person{
    double score;
    public Student(){
        super(); //默认存在，调用父类的构造器
    }
    public Student(double score){
        this.score=score;
    }
    
    public Student(int age, String name, double score) {
        super(age,name);  //调用父类的构造器
        //super();
        /*this.age =age;
        this.name = name;*/
        /*super.age =age;
        super. name = name;*/
        //super(age, name);//利用super调用父类构造器
        this.score = score;
    }
}
